import passFlowerGame from "./pass_flower_game"
import PriorityQueue from './priority_queue'


const merbers = ['小明', '小红', '大胖', '小志']
const res = passFlowerGame(merbers, 5)
res.outMembers.forEach((item, index) => {
    console.log(`在击鼓传花游戏中, 第${index + 1}个被淘汰的是 ${item}`)
})
console.log(`在击鼓传花游戏中, 胜者是 ${res.winner}`)

const pq = new PriorityQueue()
pq.enqueue('CCC', 2)
pq.enqueue('BBB', 1)
pq.enqueue('AAA', 0)
console.log('优先队列', pq)
